package entity

type Person struct {
	Name    string
	EnName  string
	Start   string
	End     string
	Desc    string
	Holiday string
}

type Report struct {
	Date    string
	Week    string
	Persons []Person
}

type Day struct {
	Time int64
	Date string
	Week string
}

type Persons []Person

func (d Persons) Len() int {
	return len(d)
}

func (d Persons) Swap(i, j int) {
	d[i], d[j] = d[j], d[i]
}

func (d Persons) Less(i, j int) bool {
	return d[i].Name < d[j].Name
}

type Days []Day

func (d Days) Len() int {
	return len(d)
}

func (d Days) Swap(i, j int) {
	d[i], d[j] = d[j], d[i]
}

func (d Days) Less(i, j int) bool {
	return d[i].Time < d[j].Time
}
